//
//  PlayerModel.m
//  LanQiuQuan
//
//  Created by TonyGenius on 16/4/10.
//  Copyright © 2016年 Rip. All rights reserved.
//

#import "PlayerModel.h"

@implementation PlayerModel

- (id)initWithName:(NSString *)playerName andPosition:(NSString *)pos andPosNumber:(NSInteger)posNumber
{
    self = [super init];
    if (self) {
        self.playerName = playerName;
        self.position = pos;
        self.positionnumber = posNumber;
        self.point = 0;
        self.twoPoint = 0;
        self.threePoint = 0;
        self.andOne = 0;
        self.assist = 0;
        self.rebound = 0;
        self.blockShot = 0;
        self.turnover = 0;
        self.technicalFoul = 0;
        self.personalFoul = 0;
        self.flagrantFoul = 0;
        self.steal = 0;
        self.fieldGoalAttemptedTwo = 0;
        self.fieldGoalAttemptedThree = 0;
        self.fieldGoalAttemptedAndOne = 0;
        self.fieldGoalAttempted = self.fieldGoalAttemptedThree + self.fieldGoalAttemptedTwo + self.fieldGoalAttemptedAndOne;
        self.shotOne = 0;
        self.shotTwo = 0;
        self.shotThree = 0;
        self.starter = NO;
        
    }
    return self;
}

@end
